package com.tongguan.paypos.entity;

import com.google.gson.Gson;

/**
 * Created by Joylive on 2016/12/11 .
 */

public class TransUnionInfo {

    private String transName;//交易类型
    private String message;//状态
    private String amount ; //金额，如000000001000
    private String traceNo ;//流水号
    private String referenceNo;//参考号
    private String cardNo;//卡号
    private String type;//卡类型 （如：借记卡，信用卡）
    private String issue;//发卡行
    private String batchNo;//批次号
    private String terminalId;//终端号
    private String merchantId;//商户号
    private String merchantName;//商户名称

    public static TransUnionInfo objectFromData(String str) {

        return new Gson().fromJson(str, TransUnionInfo.class);
    }

    public String getTransName() {
        return transName;
    }

    public void setTransName(String transName) {
        this.transName = transName;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public String getTraceNo() {
        return traceNo;
    }

    public void setTraceNo(String traceNo) {
        this.traceNo = traceNo;
    }

    public String getReferenceNo() {
        return referenceNo;
    }

    public void setReferenceNo(String referenceNo) {
        this.referenceNo = referenceNo;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getIssue() {
        return issue;
    }

    public void setIssue(String issue) {
        this.issue = issue;
    }

    public String getBatchNo() {
        return batchNo;
    }

    public void setBatchNo(String batchNo) {
        this.batchNo = batchNo;
    }

    public String getTerminalId() {
        return terminalId;
    }

    public void setTerminalId(String terminalId) {
        this.terminalId = terminalId;
    }

    public String getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId;
    }

    public String getMerchantName() {
        return merchantName;
    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }

    @Override
    public String toString() {
        return "TransUnionInfo{" +
                "transName='" + transName + '\'' +
                ", message='" + message + '\'' +
                ", amount='" + amount + '\'' +
                ", traceNo='" + traceNo + '\'' +
                ", referenceNo='" + referenceNo + '\'' +
                ", cardNo='" + cardNo + '\'' +
                ", type='" + type + '\'' +
                ", issue='" + issue + '\'' +
                ", batchNo='" + batchNo + '\'' +
                ", terminalId='" + terminalId + '\'' +
                ", merchantId='" + merchantId + '\'' +
                ", merchantName='" + merchantName + '\'' +
                '}';
    }
}
